package com.car.loan.project.xr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.car.loan.project.xr.domain.LoanDetail;
import java.util.Optional;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 业务详细资料、录入资料Mapper接口
 *
 * @author ruoyi
 * @date 2019-11-03
 */
@Repository
public interface LoanDetailMapper extends BaseMapper<LoanDetail> {

    @Select("select * from xr_loan_detail where loan_id =#{loanId}")
    Optional<LoanDetail> selectByLoanId(@Param("loanId") long loanId);
}
